package com.aracky.system.service;

import com.aracky.system.model.entity.SysRoleMenu;
import com.aracky.system.model.vo.view.MenuVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色和菜单关联表 服务类
 * </p>
 *
 * @author zzp
 * @since 2022-07-15 03:52:55
 */
public interface SysRoleMenuService extends IService<SysRoleMenu> {
    /**
     * 获取当前用户的菜单和按钮
     * @param currentUserId
     * @param needBuildTree 是否需要构建树结构
     * @return
     */
    List<MenuVO> getCurrentMenuList(Long currentUserId,boolean needBuildTree);
}
